package com.train.mgr.modules.biz.dto.response;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.train.mgr.modules.biz.utils.PassingStateConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ColumnWidth(20)
// @ApiModel("课程主页-练习记录返回对象模型")
public class UserExerciseRespListDTO {

    @ExcelIgnore
    private String courseId;
    @ExcelIgnore
    private String lessonId;
    @ExcelIgnore
    private String exerciseId;
    @ApiModelProperty(name = "nickName", value = "姓名")
    @ExcelProperty(value = "姓名")
    private String nickName;

    @ApiModelProperty(name = "lessonName", value = "课时名称")
    @ExcelProperty(value = "课时名称")
    private String lessonName;

    @ApiModelProperty(name = "exerciseType", value = "练习项目")
    @ExcelProperty(value = "练习项目")
    private String exerciseType;

    @ApiModelProperty(name = "createTime", value = "练习时间")
    @ExcelProperty(value = "练习时间", index = 3)
    @ExcelIgnore
    private String createTime;

    @ApiModelProperty(name = "exerciseNumber", value = "练习次数")
    @ExcelProperty(value = "练习次数")
    private String exerciseNumber;

    @ApiModelProperty(name = "comprehensiveScore", value = "练习得分")
    @ExcelProperty(value = "练习得分")
    private String comprehensiveScore;

    @ApiModelProperty(name = "passingState", value = "及格状态;0：不及格，1：及格")
    @ExcelProperty(value = "及格状态", converter = PassingStateConverter.class)
    private Integer passingState;

    @ApiModelProperty(name = "useTime", value = "练习时长")
    @ExcelProperty(value = "练习时长")
    private String useTime;


}
